# 定义字段映射
field_mapping = {
    "name": "name",
    "code": "ts_code",
    "now": "now",
    "close": "close",
    "open": "open",
    "volume": "volume",
    "bid_volume": "bid_volume",
    "ask_volume": "ask_volume",
    "bid1": "bid1",
    "bid1_volume": "bid1_volume",
    "bid2": "bid2",
    "bid2_volume": "bid2_volume",
    "bid3": "bid3",
    "bid3_volume": "bid3_volume",
    "bid4": "bid4",
    "bid4_volume": "bid4_volume",
    "bid5": "bid5",
    "bid5_volume": "bid5_volume",
    "ask1": "ask1",
    "ask1_volume": "ask1_volume",
    "ask2": "ask2",
    "ask2_volume": "ask2_volume",
    "ask3": "ask3",
    "ask3_volume": "ask3_volume",
    "ask4": "ask4",
    "ask4_volume": "ask4_volume",
    "ask5": "ask5",
    "ask5_volume": "ask5_volume",
    "最近逐笔成交": "recent_trades",
    "datetime": "trade_time",
    "涨跌": "change",
    "涨跌(%)": "pct_change",
    "high": "high",
    "low": "low",
    "价格/成交量(手)/成交额": "price_volume_amount",
    "成交量(手)": "vol",
    "成交额(万)": "amount",
    "turnover": "turnover",
    "PE": "pe",
    "unknown": "unknown",
    "high_2": "high_2",
    "low_2": "low_2",
    "振幅": "amplitude",
    "流通市值": "float_mv",
    "总市值": "total_mv",
    "PB": "pb",
    "涨停价": "limit_up_price",
    "跌停价": "limit_down_price",
    "量比": "volume_ratio",
    "委差": "order_imbalance",
    "均价": "average_price",
    "市盈(动)": "dynamic_pe",
    "市盈(静)": "static_pe",
}
